<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title><!--智能监控查询--></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/project/ui-res-v3.css">
    <link rel="stylesheet" href="css/project/ui-input-v3.css">
    <link rel="stylesheet" href="css/project/ui-color-v3.css">
	<link rel="stylesheet" href="css/project/style.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/zv_common.css">
	<style>
            .datecolor {
                color: #525252;
                padding-top: 0.4em;
            }
            .b-norarea {
                border-color: #ccc;
            }
            
            .passenger_infoborder {
                border-bottom: 1px solid #e5e5e5;
            }
            
            .passenger_infoborderb {
                border: 0px;
            }
            
            .passinfoba {
                background: #003f9e;
                font-weight: bold;
            }
            
            input[type =
            "radio"]:checked + div.passinfoba {
                background: #003f9e;
                color: #fff;
                border: 0px;
                overflow: hidden;
            }
            
            input[type = radio] + div.passinfoba {
                color: #003079;
                background: #fff;
                border-bottom: 0px;
                overflow: hidden;
            }
            
            .zvtakeoff {
                background: url(images/takeoff.png) no-repeat left;
            }
            
            .zvlanding {
                background: url(images/landing.png) no-repeat right
            }
            
            .zvtakeofff {
                color: #003079;
                font-size: 1em;
                font-weight: bold;
            }
            
            .datecolor1 {
                color: #525252;
            }
            
            .zvrefresh {
                margin-top: 1.2em;
                background: url(images/42.png) no-repeat;
                background-size: 50%
            }
            
            .ubr {
                border-right: solid #ccc 1px;
                border-bottom: 0px;
            }
        </style>
	<script src="js/zy_control.js"></script>
	<script src="js/zy_click.js"></script>
	<script src="js/zy_json.js"></script>
	<script src="js/main.js"></script>
	<script src="js/init.js"></script>
	<script type="text/javascript" src="js/JsonSQL/jsonsql-0.1.js"></script>
</head>
<body class="um-vp nobg " ontouchstart>
<div id="page_1" class="ub ub-ver um-vp">
			 
<div class="ub ub-ver ">
	<div class="fline   c-wh">
	    <div class='ub umar-t ub-ac' >
		<div class=" ub-ac　ulim ulev0 umw4" style="height:2em; line-height:2em">监控日期</div>
		 <div class="ub ub-f1 uba ub-ac b-bla b-norarea   noboder nobg" >
	 	<div class="ub-f1 ut-s uinn   tx-l t-gra ulh-sel " id="PeriodStart" style="width:100%;padding-left:0.8em; padding-right:0.5em" onclick="checked_day('PeriodStart')">请选择监控日期</div>
	    </div>
	</div>
	</div>
    <!--起始日期结束-->
	<div class="ub t-bla ub-ac   fline   c-wh"  style="height:2.9em; line-height:2.5em;">
	    <div class="umw4 ufl">承<span style=" float:right;">运 人</span></div>
	    <div class="ub-f1 ub uba  b-gra  sel noboder"  style=" padding-left:0.3em">
	        <div class="ub-f1 ut-s uinn tx-l t-gra ulh-sel " id="SiteName_default">MU</div>
			
	        <div class="b-gra  umw2 ub ub-pc ub-ac">
	            <div class="ub-img umw1 umh1 res3"></div>
	        </div>
	          <select name="carrier" selectedindex="0"  id="carrier" onchange="zy_selectmenu(this.id)">
					<option value="MU">MU</option>
					<option value="FM">FM</option>
					<option value="KN">KN</option>
	          </select>
	    </div>
	</div>
   </div>

	<div  id="flightNo_type" class="fline   c-wh"  style="height:2.9em; line-height:2.5em;">
		<div class="ub ulab ub-ac umh1 umar-t " >
			<div class="umw4 ufl">航 <span style=" float:right;">班 号</span></div>
            <div class="uba ub-f1 b-bla uc-a1 noboder nobg">
            	<div class="ub-f1 ub uba  b-gra  sel noboder" >
                   <div class="uba uinput passenger_infoborderb " style="width:100%; margin-left:0.8em">
	                            <input placeholder="请输入航班号" type="text" id="flightNo" style="width:100%"  maxlength="6"  value="">
	               </div>
                </div>
			</div>
		 </div>
	</div>
	
	
<div ontouchstart="zy_touch('zv-btn-act')" class="zvbtn  c-blu1  t-wh tx-c uc-a1 zvbtnpadding" style=" z-index:1000"  onclick="LoadDataS()" >确 定</div>
</div>
<input type="hidden" id="area" value="">
</div>
<div class="logobg" style="z-index:-1"><img src="images/logobg.png"  width="80%"></div>
</body>
<script>
zy_init();
window.uexOnload = function(type){
	if (!type) {
		uexWindow.setBounce("0");
	}
	$$("PeriodStart").innerHTML = getNowFormatDate();
}
function LoadDataS(type){
		var flightNo = $$("flightNo").value;/*航班号*/
		var PeriodStart = $$("PeriodStart").innerHTML; /*监控日期*/
		localStorage.setItem("backup_PeriodStart_znjk",PeriodStart);
		PeriodEnd_time=PeriodStart+" 15:59:59"
		var PeriodStart_time=zv_transdate(PeriodStart)
		PeriodStart_time=PeriodStart_time-8*60*60
		PeriodStart_time=zv_detailed(PeriodStart_time)
		var carrier 	= $$("carrier").value;/*站点名*/
		
		
		
		if (PeriodStart == ''||PeriodStart == '请选择监控日期') {
			$alert('请选择监控日期');
			return false;
		}
		else
		{
			if (flightNo == '') {
				$alert('请输入航班号');
				return false;
			}
			else {
				
				flightNo=carrier+flightNo;
				if (type != 1) {
					Loading(0);
				}
				var wsdl =intelligent_monitoring_url
			    var nameSpace =intelligent_monitoring_nameSpace
				var paras = "PeriodStart|PeriodEnd|SiteName|FilghtNumber";
				var values =PeriodStart_time+"|"+PeriodEnd_time+'||'+flightNo
				var method ="PersonalCenterGetInfoByOperation"
				if(type==1)
				{
					setLocalJosnPage(wsdl,nameSpace,paras,values,method,"intelligent_monitoring_view","monitoring_list");		
				}
				else
				{
					localStorage.setItem("monitoring_judge","")//超时
					$.getJSON(ceair_class_url, function(ajson){
						var jsonStr = JSON.stringify(ajson);
						localStorage.setItem("Class_Data",jsonStr);
						localStorage.setItem("zvData",'');//设置数据为空
						monitoringJosn(wsdl,nameSpace,paras,values,method,"intelligent_monitoring_view2","intelligent_monitoring_view2.html");	
						setTimeout('monitor_timeout()',120000)//两分钟后执行
					});
				}
			}
		}
}
function monitor_timeout()
{
	var zvData=localStorage.getItem("zvData")
	if(zvData==''||zvData=='undefined'||zvData==undefined||zvData==null)
	{
			localStorage.setItem("monitoring_judge","1")//超时
			$alert("查询超时")
			Loading(-1);
	}
}
</script>
</html>